﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace HogBlog.Models
{
    public class Entry
    {
        public int EntryId { get; set; }

        [DataType(DataType.Text)]
        public string Title { get; set; }

        [DataType(DataType.Html)]
        public string Content { get; set; }

        public int Status { get; set; } // 0=draft, 1=published

        public DateTime PubDate { get; set; }

        public Guid Author { get; set; } // Author, ASP.Net Member Info

        public byte[] Image { get; set; }

        public virtual IList<Tag> TagList { get; set; }
    }
}